//
//  GXZTaglistView.h
//  GXZTagListView
//
//  Created by Deeokay on 2017/10/27.
//  Copyright © 2017年 GXZ. All rights reserved.
//

#import <UIKit/UIKit.h>
@class GXZTaglistView;
@protocol GXZTagListViewProtocol<NSObject>
@optional
//点击某一个tag执行方法
-(void)gxzTagListView:(GXZTaglistView *)listView didSelectedAtIndex:(int)index showTitle:(NSString *)title;

@end

@interface GXZTaglistView : UIView
//页面初始化
-(instancetype)gxzAlocWihtInit:(CGRect)frame andTagList:(NSMutableArray *)tagList;
//返回页面的总体高度
-(CGFloat)gxzGiveYouHeightOfView;
-(void)gxzSetUIandTaglist:(NSMutableArray *)taglist withHeight:(void(^)(CGFloat he))transformHeight;
-(void)gxzTransformHeight:(void(^)(CGFloat he))transformHeight;
@property (nonatomic,weak) id<GXZTagListViewProtocol>delegate;
@property (nonatomic,assign) CGFloat tagX;//tag的起始x坐标
@property (nonatomic,assign) CGFloat tagY;//tag的起始y坐标
@property (nonatomic,assign) CGFloat tagXMargin;//tag的x轴的间距
@property (nonatomic,assign) CGFloat tagYMargin;//tag的y轴的间距
@property (nonatomic,strong) UIColor * defaultColor;//tag的默认背景色
@property (nonatomic,strong) UIColor * defaultSelectColor;//tag的默认选中颜色
@property (nonatomic,assign) CGFloat defaultFont;//tag的默认字体大小
@property (nonatomic,strong) UIColor * defaultTitleColor;//tag的默认字体颜色
@property (nonatomic,strong) UIColor * defaultTitleSelectColor;//tag的默认选中颜色
@property (nonatomic,strong) UIColor * defaultBorderColor;//tag的默认边框的颜色
@property (nonatomic,strong) UIColor * defaultSelectBorderColor;//tag的默认边框选中的颜色
@property (nonatomic,assign) CGFloat defaultCornerRadius;//tag的默认圆角大小
@property (nonatomic,assign) CGFloat defaultBorderWidth;//tag的默认边框宽度
@property (nonatomic,assign) CGFloat defaultTagWidth;//tag的默认宽度
@property (nonatomic,assign) CGFloat defaultTagHeight;//tag的默认高度
@end
